﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Wind.Cloud.Tools
{
    public static class Config
    {
        //eg:Matrix2 functions=s_dq_close(windcode,{0},0);s_dq_change(windcode,{0}) windcode={2}
        public static string Cloud_CMD_WSD = "Matrix2 functions={0} windcode={1}";
        //eg:WSD('{0}','s_holder_pctbyfund,s_holder_pctbysec,s_holder_pctbybywmp,s_holder_pctbyqfii,s_holder_pctbyinsur,s_holder_pctbyssfund,s_holder_pctbycorppension,s_holder_pctbytrustcorp,s_holder_pctbyfinancecorp,s_holder_pctbybank,s_holder_pctbygeneralcorp,s_holder_pctbylnfcorp','{1}','{2}','priceAdj=1','period=Q')
        public static string Cloud_CMD_Matrix2 = "WSD({0})";

        /*
         *   获取资金流向数据 GetStockMoneyFlowInfo:
         *   WSD('600000.SH','s_mfd_inflow','20121201','20121213','priceAdj=1')
         *   
         *   Matrix2 functions=s_nq_pctchange(windcode,20111222,5);s_nq_pctchange(windcode,20111222,10) windcode=600000.SH
         *   
          <!--Cloud中查询股票行情数据-->
       <add key="Cloud_Cmd_WCTGetStockHQ" value="Matrix2 functions=s_dq_close(windcode,{0},0);s_dq_change(windcode,{0});s_dq_pctchange(windcode,{0});s_val_mv(windcode,{0});s_val_pe_ttm(windcode,{0});s_val_estpe_new(windcode,{1});s_val_pb_new(windcode);s_share_total(windcode,{0});s_share_liqa(windcode,{0});s_val_ashrmarketvalue(windcode,{0});s_risk_betar100(windcode,{0});s_risk_stdevr100(windcode,{0});f_info_lastdate(windcode) windcode={2}"/>

       <!--股东数据分析-机构持股比例-->
       <add key ="Cloud_Cmd_WCTGetStockHoldingPercent" value="WSD('{0}','s_holder_pctbyfund,s_holder_pctbysec,s_holder_pctbybywmp,s_holder_pctbyqfii,s_holder_pctbyinsur,s_holder_pctbyssfund,s_holder_pctbycorppension,s_holder_pctbytrustcorp,s_holder_pctbyfinancecorp,s_holder_pctbybank,s_holder_pctbygeneralcorp,s_holder_pctbylnfcorp','{1}','{2}','priceAdj=1','period=Q')"/>

         */

   }
}
